#!/bin/sh
#安装后执行脚本
myFile="/Library/LaunchDaemons/com.Y3.WeChatTool.plist"

echo "pos exist plist?"
if [ -f "$myFile" ];
then
#启动进程
echo "run load"
launchctl load -w "$myFile"

# echo "run start"
# launchctl start com.Y3.WeChatTool
else
echo "not exist"
fi
#end
